///
/// 接口管理
///
class Api {
  Api._();
  static const basicUrl = _Api.basicUrl;
  // 首页
  static const focus = _Api.focus;
  static const shopCategory = _Api.shopCategory;
  static const shopList = _Api.shopList;

  // 分类
  static const pcate = _Api.pcate;
  static const pcontent = _Api.pcontent;

  // 登录注册
  static const sendCode = _Api.sendCode;
  static const validateCode = _Api.validateCode;
  static const register = _Api.register;
  static const doLogin = _Api.doLogin;
  static const sendLoginCode = _Api.sendLoginCode;
  static const validateLoginCode = _Api.validateLoginCode;

  // 收货地址
  static const oneAddressList = _Api.oneAddressList;
  static const addAddress = _Api.addAddress;
  static const addressList = _Api.addressList;
  static const changeDefaultAddress = _Api.changeDefaultAddress;
  static const deleteAddress = _Api.deleteAddress;
  static const editAddress = _Api.editAddress;

  // 下单
  static const doOrder = _Api.doOrder;
  static const orderList = _Api.orderList;
}

abstract class _Api {
  _Api._();
  static const basicUrl = 'https://miapp.itying.com';
  // 轮播图
  static const focus = 'focus';
  // 商品甄选分类
  static const shopCategory = 'bestCate';
  // 商品列表
  static const shopList = 'plist';
  // 商品分类
  static const pcate = 'pcate';
  // 商品详情
  static const pcontent = 'pcontent';
  // 获取验证码
  static const sendCode = 'sendCode';
  // 验证验证码
  static const validateCode = 'validateCode';
  // 注册
  static const register = 'register';
  // 登录
  static const doLogin = 'doLogin';
  //验证码登录 发送验证码
  static const sendLoginCode = 'sendLoginCode';
  //验证码登录 验证验证码
  static const validateLoginCode = 'validateLoginCode';
  // 默认收货地址
  static const oneAddressList = 'oneAddressList';
  // 添加收货地址
  static const addAddress = 'addAddress';
  // 获取收货地址列表
  static const addressList = 'addressList';
  // 修改默认收货地址
  static const changeDefaultAddress = 'changeDefaultAddress';
  // 修改默认收货地址
  static const deleteAddress = 'deleteAddress';
  // 修改收货地址
  static const editAddress = 'editAddress';
  // 下单
  static const doOrder = 'doOrder';
  // 订单列表
  static const orderList = 'orderList';
}
